package com.ruoyi.ihome.service;

import com.ruoyi.ihome.domain.ApartmentAndFacility;

import java.util.List;

/**
 * 公寓设置中间表Service接口
 * 
 * @author zy
 * @date 2024-08-13
 */
public interface IApartmentAndFacilityService 
{
    /**
     * 查询公寓设置中间表
     * 
     * @param id 公寓设置中间表主键
     * @return 公寓设置中间表
     */
    public ApartmentAndFacility selectApartmentAndFacilityById(Long id);

    /**
     * 查询公寓设置中间表列表
     * 
     * @param apartmentAndFacility 公寓设置中间表
     * @return 公寓设置中间表集合
     */
    public List<ApartmentAndFacility> selectApartmentAndFacilityList(ApartmentAndFacility apartmentAndFacility);

    /**
     * 新增公寓设置中间表
     * 
     * @param apartmentAndFacility 公寓设置中间表
     * @return 结果
     */
    public int insertApartmentAndFacility(ApartmentAndFacility apartmentAndFacility);

    /**
     * 修改公寓设置中间表
     * 
     * @param apartmentAndFacility 公寓设置中间表
     * @return 结果
     */
    public int updateApartmentAndFacility(ApartmentAndFacility apartmentAndFacility);

    /**
     * 批量删除公寓设置中间表
     * 
     * @param ids 需要删除的公寓设置中间表主键集合
     * @return 结果
     */
    public int deleteApartmentAndFacilityByIds(Long[] ids);

    /**
     * 删除公寓设置中间表信息
     * 
     * @param id 公寓设置中间表主键
     * @return 结果
     */
    public int deleteApartmentAndFacilityById(Long id);
}
